﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace WCFServer
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IServerManager" in both code and config file together.
    [ServiceContract]
    public interface IServerManager
    {
        [OperationContract]
        List<WcfMessage> getMessages(string sqlQuery, List<WcfParameter> parameters, string connectionString);

        [OperationContract]
        List<WcfMsgAttribute> getMessageAttributes(int msgID, string connectionString);

        [OperationContract]
        void markMessageAsRead(string sqlQuery, List<WcfParameter> parameters, string connectionString);
        
        [OperationContract]
        void writeNewMessageToDb(WcfMessage msg, string connectionString);

        

 
    }
}
